package com.enlorenz.core.annotation.base;

import java.util.ArrayList;
import java.util.List;

import com.enlorenz.common.util.CommonContants;
import com.enlorenz.core.annotation.Property;

/**
 * 服务注释包装类
 * @author lcb
 */
public class AnnoServiceWrapper extends AnnoBaseWrapper{
	//方法包装类
	@Property(name="注释方法列表",desc="用于存放注释方法",
			impl=AnnoMethodWrapper.class)
	public List<AnnoMethodWrapper> methodList;
	
	/**
	 * 添加注释包装类
	 * @param wrapper 注释包装类
	 */
	public void addAnnoMethodWrapper(AnnoMethodWrapper wrapper){
		if(null == methodList){
			methodList=new ArrayList<AnnoMethodWrapper>();
		}
		methodList.add(wrapper);
	}
	
	public List<AnnoMethodWrapper> getMethodList() {
		return methodList;
	}
	public void setMethodList(List<AnnoMethodWrapper> methodList) {
		this.methodList = methodList;
	}
	
	public String toString(){
		return "Service:"+super.toString()+CommonContants.WRAP_SYMBOL+"MethodList:"+methodList;
	}
}
